/**
 * @License: (C) Copyright 2013-2022
 * @Contact: abcque@outlook.com
 * @IDE: IntelliJ IDEA
 * @Encoding: utf-8
 * @Project: st2214 2215
 * @Package: PACKAGE_NAME
 * @File: MultiplyTable.java
 * @Time: 2022/12/6 10:12
 * @Author: abcque
 * @Description: 九九乘法表
 * @Modifier:
 * @ModifyDate:
 * @ModifyRemark:
 */
public class MultiplyTable {
    public static void main(String[] args) {
        // System.out.println("1 * 1 = 1");
        int i = 1;
        int j = 1;
        // System.out.println(i + " * " + j + " = " + i * j);
        // System.out.printf("%d * %d = %d", i, j, i * j);

        // for (int m = 1; m < 10; m++) {
        //     System.out.printf("%d * %d = %d ", m, 9, m * 9);
        // }

        // for (int n = 1; n < 10; n++) {
        //     for (int m = 1; m <=n ; m++) {
        //         System.out.printf("%d * %d = %-2d ", m, n, m * n);
        //     }
        //     System.out.printf("%c", '\n');
        // }

        for (int n = 1; n < 10; n++) {
            for (int m = n; m <=9 ; m++) {
                System.out.printf("%d * %d = %-2d ", m, n, m * n);
            }
            System.out.printf("%c", '\n');
        }

    }
}
